Don't build docs/tests into separate dirs
authorAlex Crichton <alex@alexcrichton.com>
Tue, 19 Aug 2014 04:38:04 +0000 (21:38 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Tue, 19 Aug 2014 06:16:13 +0000 (23:16 -0700)
commit37538a13acfc010a38f0ab7ea745f858bbd7e179
tree6dee8aceb0191746d697c51d96ae48846db9475d
parent6a55dc850b46982b939f4882b6311b6a19fe6aad
Don't build docs/tests into separate dirs

This commit changes the hash of Profile to only take into account
flags/variables that affect the actual output file itself (as opposed to its
location), and then changes cargo {test, build, doc} to all use the same
directory of output (in order to share deps).

This will cause a `cargo build` to remove all of the tests generated by `cargo
test`, but it speeds up the cycle of `cargo test` followed by a `cargo build` by
not needing to rebuild all dependencies.

Additionally, `cargo bench` now shares the same directory as
`cargo build --release` for the same reasons as above.

Closes #348
src/cargo/core/manifest.rs
src/cargo/ops/cargo_rustc/mod.rs
tests/test_cargo_bench.rs
tests/test_cargo_compile.rs
tests/test_cargo_compile_git_deps.rs
tests/test_cargo_compile_path_deps.rs
tests/test_cargo_cross_compile.rs
tests/test_cargo_test.rs